package com.nlx.notes.module.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author nlx
 * @since 2024-12-15
 */
@Getter
@Setter
public class Categories implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 分类ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String categoryCode;

    /**
     * 分类名称
     */
    private String name;

    private Long categoryIconId;

    private String categoryIcon;

    private String categoryColor;

    private String categoryType;


    /**
     * 父级分类ID，NULL表示一级分类
     */
    private Long parentId;

    /**
     * 用户ID，外键，表示此分类属于哪个用户
     */
    private Long userId;

    /**
     * 创建时间
     */
    private LocalDateTime createdTime;

    private LocalDateTime updatedTime;

    private Integer delFlag;
}
